package com.vivimice.lotroller.device;

public class OrGate extends LogicalGate {

	public OrGate(Device[] upperDevices) {
		super(upperDevices);
	}
	
	@Override
	public boolean getStatus() {
		for (Device upperDevice : getUpperDevices()) {
			if (upperDevice.getStatus()) {
				return true;
			}
		}
		return false;
	}

}
